<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    



 <script src="./javascripts/mock.js"></script>
 <script>

       var data = Mock.mock({
            // 属性 list 的值是一个数组，其中含有 1 到 10 个元素
            "list|10-15": [{
                // 属性 id 是一个自增数，起始值为 1，每次增 1
                "id|+1": 1,
                "roleName|1": ["测试角色1", "测试角色2", "测试角色3", "测试角色4", "测试角色5"],
                "county":"@county(true)",
                "email":"@email",
                "number|1": ["1-3年","1-2年","2-3年","3-5年","5-10年"],
                "education|1":["大专","本科","高中","硕仕","初中"],
                "enterprise|1":["千库科技有限公司","北京小库科技有限公司","成都维音信息技术有限公司","百耀科技有限公司","万维科技有限公司","中通信通投资有限公司"],
                "face":"@image",
                 "Delivery|1":["投递","已投递"],
                "createTime": Date.now,
                "salary|1":["9-12K","4-6K","5-7K","8-12K","3-6K","1.1-1.2K","1.5-2.2K"],
                "scale|1":["电子商务,移动互联网,500-1000人","电子商务,移动互联网,50-200人","电子商务,移动互联网,100-500人","电子商务,移动互联网,200-600人"],
                "img-1": "@image('100x100', '@color', '#fff', 'png', 'Mock.js')",   
                "url": "https://unsplash.it/400/800/?random", 

            }]
        })
        // 输出结果
        // console.log(JSON.stringify(data, null, 4))
        console.log(data);

        var data1 = Mock.mock({
            // 属性 list 的值是一个数组，其中含有 1 到 10 个元素
            "list|1": [{            
                "id|+1": 1,
                "gongsi":{
                     "Information":"公司规模",
                    "paragraph1": "@cparagraph(2)",
                },
                "corporate ":{
                     "culture":"企业文化",
                    "paragraph1": "@cparagraph(5)",
                }

            }]
        })
        console.log(data1);
 </script>
</body>
</html>